package club.hicode.daydayup.put;

import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试Rest
 *
 * @author Liu Chunfu
 * @date 2018-08-07 下午5:01
 **/
@RestController
public class RestControllerTest {

    //如果不带有
    @PutMapping("/mic/rest")
    public String test1(String name) {
        System.out.println(name);
        return name;
    }

    @PutMapping("/mic/rest2")
    public String test2(@RequestBody String name) {
        System.out.println(name);
        return name;
    }
}
